<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<FORM ACTION="/CA_Project/adminnewPage" Method="POST">
	<h1>Admin Page!</h1>
		<table cellpadding=4 cellspacing=2 border=0>
			<tr>
				<th width="45%">Staff ID:</th>
				<td><input type="text" name="IDTextBOX" value="${Users._userID}"></td>
				<td><input type="submit" name="Search" value="SEARCH">
	 			</td>
			</tr>
			<tr>
				<th width="45%">Staff Name:</th>
				<td><input type="text" name="NAMETEXTBOX" value="${Users._name}">
				<td>
			</tr>
			<tr>
				<th width="45%">Gender</th>
				<td>M<input type="radio" name="Gender" value="${Users._gender}"> &nbsp;
				 F<input type="radio" name="Gender" value="${Users._gender}"></td>
				<th width="45%">Age:</th>
				<td><input type="text" name="AGETEXTBOX" value="${Users._age}"></td>
			</tr>
			<tr><!-- 
				<th width="45%">Staff Type:</th>
				<td><select name="StafType" size="3" style="height : 22px; width : 146px">
					<option value="Admin">Admin</option>
					<option value="Manager">Manager</option>
					<option value="Staff">Staff</option></select>
				</td> -->
				<th width="45%">Staff ROLE:</th>
				<td><input type="text" name="ROLETEXTBOX" value="${Users._domain}"></td>
			</tr>
			<tr>
				<th width="45%">Supervisor:</th>
				<td><input type="text" name="SUPERVISORTEXTBOX" value="${Users._supID}"></td>
			</tr>
			<tr></tr>
			<tr>
				<td>
				<c:url var="Insert" scope="page" value="/InsertAdminServlet">
                            <c:param name="Id" value="${Users._userID}"/>
                            <c:param name="Name" value="${Users._name}"/>
                            <c:param name="Domain" value="${Users._domain}"/>
                            <c:param name="Gender" value="${Users._gender}"/>
                            <c:param name="TYPE" value="${Users._staffType}"/>
                             <c:param name="update" value="true"/> 
                        </c:url>
                        <a href="${Insert}">Insert Employee</a>            
				
				&nbsp;&nbsp;
				<c:url var="Edit" scope="page" value="/UpdateAdminServlet">
                            <c:param name="Id" value="${Users._userID}"/>
                            <c:param name="Name" value="${Users._name}"/>
                            <c:param name="Domain" value="${Users._domain}"/>
                            <c:param name="Gender" value="${Users._gender}"/>
                            <c:param name="TYPE" value="${Users._staffType}"/>
                             <c:param name="update" value="true"/> 
                        </c:url>
                        <a href="${Edit}">Edit Employee</a>      
				
				&nbsp;&nbsp;
				<c:url var="Delete" scope="page" value="/DeleteAdminServlet">
                            <c:param name="Id" value="${Users._userID}"/>
                             <c:param name="update" value="true"/> 
                        </c:url>
                        <a href="${Delete}">Delete Employee</a> 
                    </td>            
				
			</tr>
			
		</table>
	</FORM>
</body>
</html>